home *** CD-ROM | disk | FTP | other *** search
/ Workbench Design / WB Collection.iso / workbench werkzeuge / uhren & terminkalender / organizer / stickit2 / source / commodore.c < prev    next >
C/C++ Source or Header  |  1996-04-07  |  849b  |  41 lines

  1. /*********************************************/
  2. /**************   commodore.c   **************/
  3. /*********************************************/
  4.  
  5. #include <clib/intuition_protos.h>
  6. #include <clib/exec_protos.h>
  7. #include <clib/dos_protos.h>
  8. #include <clib/graphics_protos.h>
  9. #include <clib/layers_protos.h>
  10.  
  11. #include <exec/types.h>
  12. #include <exec/nodes.h>
  13. #include <exec/lists.h>
  14. #include <exec/ports.h>
  15.  
  16. #include <intuition/intuition.h>
  17. #include <intuition/intuitionbase.h>
  18. #include <graphics/displayinfo.h>
  19. #include <graphics/gfxbase.h>
  20.  
  21. #include "consts.h"
  22. #include "structs.h"
  23. #include "proto.h"
  24.  
  25. void andysCloseWindowSafely(struct Window *win)
  26.    {
  27.    Forbid();
  28.  
  29.    if (win->UserPort)                /* <- Andy's bit */
  30.       StripIntuiMessages(win->UserPort,win);
  31.  
  32.    win->UserPort = NULL;
  33.  
  34.    ModifyIDCMP(win,0L);
  35.  
  36.    Permit();
  37.  
  38.    CloseWindow(win);
  39.    }
  40.  
  41.